const { DataTypes } = require("sequelize");
const sequelize = require("../config/database");

const Supplier = sequelize.define("Supplier", {
  name: {
    type: DataTypes.STRING,
    allowNull: false,
    comment: '公司名称'
  },
  contact: {
    type: DataTypes.STRING,
    allowNull: false,
    comment: '联系人'
  },
  phone: {
    type: DataTypes.STRING,
    allowNull: false,
    comment: '联系电话'
  },
  address: {
    type: DataTypes.STRING,
    allowNull: false,
    comment: '地址'
  }
});

module.exports = Supplier;
